/**
 * OrderInfoCarRentMapperExt
 * Copyright © 2015 - 2017 
 * All rights reserved.
 * -----------------------------------
 * 2018-07-04  Created
 */
package com.lzy.cloud.order.mapper;

import com.lzy.cloud.order.dtos.OrderInfoCarRentDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderInfoCarRentMapperExt extends OrderInfoCarRentMapper {

    OrderInfoCarRentDto queryByOrderId(@Param("orderId") String orderId);

    /**
     * 根据条件查询
     * @param dto
     * @return
     */
    List<OrderInfoCarRentDto> selectList(OrderInfoCarRentDto dto);

    /**
     * 根据车辆id和租车时间查询订单
     * @param carId
     * @param rentTime
     * @return
     */
    OrderInfoCarRentDto findByCarIdAndRentTime(@Param("carId") Long carId, @Param("rentTime") String rentTime);
}